package com.qf.test;

import com.qf.controller.UserController;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 10537
 * @version V1.0
 * @Date 2021/9/27 15:33
 */

public class Demo3 {
    @Test
    public void inThe(){
        ApplicationContext ac=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        Object userController = ac.getBean("userController");
        System.out.println(userController);
    }

}
